﻿@{Htss.Platform.Web.HtmlHelper Html = new Htss.Platform.Web.HtmlHelper();}
<!doctype html>
<html>
<head>
    <meta charset="utf-8" />
    <title>首页-@DreamBox.DAL.SiteConfig.Config.SiteName-@DreamBox.DAL.SiteConfig.Config.Title</title>
    <meta name="description" content="@DreamBox.DAL.SiteConfig.Config.Description" />
    <meta name="keywords" content="@DreamBox.DAL.SiteConfig.Config.KeyWords" />
    <script type="text/javascript" src="/tools/js/jquery-2.1.1.min.js"></script>
    <link href="/style/metro/css/metro-bootstrap.css" rel="stylesheet" />
    <script src="/style/metro/css/metro.min.js"></script>
</head>
<body class=" metro">
    <div class="container">
        @Html.Action("", "header")
        <div class="grid offset3">
            <div class="row">
                <div class="span2">
                    <nav class="sidebar light">
                        <ul class="" id="postsclass">
                            <li class="nav-header">
                                分类选项
                            </li>
                            <li data-id="0">
                                <a href="/portal">最新</a>
                            </li>
                             <li data-id="plus">
                                 <a href="/portal/plus">(+1)排行</a>
                             </li>
                            <li data-id="reply">
                                <a href="/portal/reply">回复排行</a>
                            </li>
                            <li data-id="hot">
                                <a href="/portal/hot">浏览排行</a>
                            </li>
                        </ul>
                    </nav>
                    <script>
                        $(document).ready(function () {
                            var t = '@Html.ViewData["type"]';
                            $("#postsclass").find("li").each(function(){
                                if($(this).attr("data-id")==t)
                                {
                                    $(this).attr("class","active");
                                }
                            });
                        });
                    </script>
                </div>
                <div class="span9">
                    <div class="row">
                        @foreach (Htss.Platform.Data.DbRow row in Html.ViewDbTable["ListData"].Rows)
                        {
                            <div class="listview">
                                <a href="/posts/read/@(row["PostsID"])" class="list span8">
                                    <div class="list-content">
                                        <img src="@(row["Avatar"])" title="@(row["UserName"])" alt='@(row["UserName"])' class="icon">
                                        <div class="data">
                                            <span class="list-title"><h4>@(row["Title"])</h4></span>
                                            <span class="list-remark">(+1)(@(row["Plus"]))&nbsp;&nbsp;回复(@row["ReplyCount"])&nbsp;&nbsp;浏览(@(row["BrowseCount"]))</span>
                                        </div>
                                    </div>
                                </a>
                            </div>
                        }
                    </div>
                </div>
            </div>
        </div>
        @Html.Action("", "footer")
    </div>
</body>
</html> 